package com.my.test.thread;

public class Start {


    public static void main(String[] args) throws InterruptedException {

        Runnable runnable = new Runnable() {
            @Override
            public void run() {
                System.out.println(123);
            }
        };

        Thread thread = new Thread(runnable);
        thread.start();
        Thread.sleep(1000);
        Thread thread1 = new Thread(runnable);
        thread1.start();
    }
}
